package com.joysuch.wwyt.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@TableName("wwyt_base_manage_type")
public class BaseManageType {
    private Long id;

    private Long tenentId;

    private String orgCode;

    @NotNull(message = "部门id不能为空")
    @ApiModelProperty(value = "部门id", required = true)
    private Long departId;

    @NotNull(message = "管理类型字典码不能为空")
    @ApiModelProperty(value = "管理类型字典码id", required = true)
    private Long manageTypeDictionaryCode;

    @NotNull(message = "员工id不能为空")
    @ApiModelProperty(value = "员工id", required = true)
    private Long userId;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getTenentId() {
        return tenentId;
    }

    public void setTenentId(Long tenentId) {
        this.tenentId = tenentId;
    }

    public String getOrgCode() {
        return orgCode;
    }

    public void setOrgCode(String orgCode) {
        this.orgCode = orgCode == null ? null : orgCode.trim();
    }

    public Long getDepartId() {
        return departId;
    }

    public void setDepartId(Long departId) {
        this.departId = departId;
    }

    public Long getManageTypeDictionaryCode() {
        return manageTypeDictionaryCode;
    }

    public void setManageTypeDictionaryCode(Long manageTypeDictionaryCode) {
        this.manageTypeDictionaryCode = manageTypeDictionaryCode;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
}